﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "imagesourcecameraoperate.h"
#include "camerathread.h"
#include <QDebug>
#include <QMetaType>
#include "AlgorithModule.h"
//折线图
#include <QtCharts>
#include <QTimer>
#include <QChartView>
#include <QValueAxis>
#include <QLineSeries>


using namespace cv;
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_pushButton_openCanera_clicked();

private:
    Ui::MainWindow *ui;
    ImageSourceCameraOperate cameraOperate;
    Grabber		m_cGrabber_camera; // The instance of the Grabber class.
    CameraThread * cameraThread;
    AlgorithModule algorithModule;

    QChart *chart;
    QLineSeries *series0;

private slots:
    void showMat_slot(cv::Mat);

    void on_pushButton_camera_stteing_clicked();
    void on_pushButton_start_clicked();
    void on_pushButton_clicked();
};
#endif // MAINWINDOW_H
